
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page isELIgnored="false" %>
<!DOCTYPE html>
<!-- saved from url=(0059)http://demo.demohuo.top/modals/66/6613/demo/admin-list.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>后台管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/examproject/manage/css/layui.css" media="all">
    <link rel="stylesheet" href="/examproject/manage/css/admin.css" media="all">
    <link id="layuicss-layer" rel="stylesheet" href="/examproject/manage/css/layer.css" media="all"><link id="layuicss-laydate" rel="stylesheet" href="./laydate.css" media="all"></head>
    <style>
        /*设置下拉按钮*/
        .dropbtn {
            background-color: #4CAF50;
            color: white;
            padding: 16px;
            font-size: 16px;
            border: none;
            cursor: pointer;
        }
        .dropdown {
            position: relative;
            display: inline-block;
        }
        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #f9f9f9;
            min-width: 160px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            z-index: 1;
        }
        .dropdown-content option {
            color: black;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
        }
        .dropdown-content option:hover {background-color: #f1f1f1}
        .dropdown:hover .dropdown-content {
            display: block;
        }
        .dropdown:hover .dropbtn {
            background-color: #3e8e41;
        }
        .dropbtn{
            text-shadow: 2px 2px 5px red;
        }
        .solid{
            border-style: solid;
        }
    </style>
<body>
<div class="layui-fluid">
    <div class="layui-col-md12">
        <div class="layui-navs">
					<span class="layui-breadcrumb" lay-separator="—" style="visibility: visible;">
						<a href="/examproject/manage/index.jsp">主界面</a><span lay-separator="">—</span>
						<a href="#">班级情况</a><span lay-separator="">—</span>
						<a><cite>考试情况</cite></a>
					</span>
            <a class="layui-btn layui-btn-small" style="line-height:1.6em;float:right;height: 36px;" href="javascript:location.replace(location.href);" title="刷新">
                <i class="layui-icon layui-icon-refresh" style="line-height:36px;font-size: 16px;"></i>
            </a>
        </div>
    </div>
    <div class="layui-col-md12">
        <div class="layui-card">
            <div class="layui-card-body ">

            </div>
            <form action="/examproject/man/cxksbj" id="myform">
                    <select  id="sid" onchange="submitForm()" name="classId">
                        <option>请选择班级</option>
                    <c:forEach items="${bjlist}" var="n" >
                            <option  value="${n.classId}">${n.className}</option>
                    </c:forEach>
                    </select>
            </form>

            <form action="/examproject/man/cxkssj" id="myform1">
                <select  id="lid1" onchange="submitForm1()" name="exam_name">
                    <option>请选择试卷</option>
                    <c:forEach items="${list}" var="n" >
                        <option  value="${n.exam_name}">${n.exam_name}</option>
                    </c:forEach>
                </select>
            </form>
            <div class="layui-card-body">
                <table class="layui-table layui-form">
                    <thead>
                    <tr>
                        <th>考试记录ID</th>
                        <th>用户ID</th>
                        <th>班级ID</th>
                        <th>用户名</th>
                        <th>考试ID</th>
                        <th>考试得分</th>
                        <th>做题时间</th>
                        <th>状态</th>
                        <th>试卷名称</th>
                        <th>试卷类型</th>

                        <th>管理</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                 <c:forEach items="${list1}" var="n" >
                    <tr id="tb" >
                        <td class="solid">${n.exam_record_id}</td>
                        <td class="solid">${n.user_id}</td>
                        <td class="solid">${n.classId}</td>
                        <td class="solid">${n.stname}</td>
                        <td class="solid">${n.exam_id}</td>
                        <td class="solid">${n.exam_score}</td>
                        <td class="solid">${n.exam_time}</td>
                        <td class="solid">${n.exam_zt}</td>
                        <td class="solid">${n.exam_name}</td>
                        <td class="solid">${n.exam_type}</td>
                        <td>
                            <a class="layui-btn layui-btn-sm layui-btn-danger" title="删除" onclick="return confirm('你确定删除吗')" id="testLink" href="/examproject/man/delsj?exam_record_id=${n.exam_record_id}&classId=${n.classId}"><i class="layui-icon layui-icon-delete"></i>删除</a>
                        </td>
                    </tr>
                    </c:forEach>
                    </tbody>
                </table>
            </div>
            <%--<c:forEach begin="${pb.end}" end="${pb.end }" var="k">
                <c:set var="p" value="${k==pb.curPage?'cur':''}"></c:set>
                <a class="${p}" href='/sc/User/cxksbj?p=${k}'>一共${pb.end }页</a>
            </c:forEach>
            <a href='/sc/User/cxksbj?p=1&classId=1'>首页</a>
            <a href='/sc/User/cxksbj?p=${last}&classId=1'>上一页</a>
            <a href='/sc/User/cxksbj?p=${next}&classId=1'>下一页</a>
            <a href='/sc/User/cxksbj?p=${pb.end}&classId=1'>尾页</a>--%>
        </div>
    </div>
</div>
<script src="/schoolexam/js/jquery-3.4.1.min.js.下载"></script>
<script src="/schoolexam/js/layui.js.下载"></script>
<script src="/schoolexam/js/admin.js.下载"></script>
<script>
    function submitForm(){
        var form = document.getElementById("myform");
        form.submit();
    }
    function submitForm1(){
        var form = document.getElementById("myform1");
        form.submit();
    }

</script>
</body>
</html>
